'use strict';
/**
 * relation model
 */
module.exports = class extends think.Model {
  /**
   * init
   * @param  {} args []
   * @return {}         []
   */
  get relation() {
    return {
      product: {
        type: think.Model.HAS_ONE, // relation type
        key: 'pid',
        fKey: 'id',
        name: 'productlist',
        where: 'is_show!=0'
      }
    };
  }
};
